<template>
  <div id="app">
    <Home
      v-if="
        token != null &&
          $router.currentRoute.name !== 'PathSelector' &&
          $router.currentRoute.name !== 'Player' &&
          $router.currentRoute.name !== 'PhotoViewer'
      "
    >
    </Home>
    <router-view v-else></router-view>
  </div>
</template>
<script>
import Home from "@/views/Main";
import { mapGetters } from "vuex";
export default {
  components: { Home },
  computed: {
    ...mapGetters(["token"])
  }
};
</script>
<style>
html,
body,
#app {
  height: 100%;
}
body {
  margin: 0;
}
* {
  -webkit-user-select: none;
}
</style>
